home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
mxcode
/
ampegsrc
/
tables
/
alloc_0
< prev
next >
Wrap
Text File
|
1994-11-11
|
5KB
|
162 lines
:= 0;
end;
end;
end;
WaitToGo;
end; { UserLineStylePlay }
procedure SayGoodbye;
{ Say goodbye and then exit the program }
var
ViewInfo : ViewPortType;
begin
MainWindow('');
GetViewSettings(ViewInfo);
SetTextStyle(TriplexFont, HorizDir, 4);
SetTextJustify(CenterText, CenterText);
with ViewInfo do
OutTextXY((x2-x1) div 2, (y2-y1) div 2, 'That''s all folks!');
StatusLine('Press any key to quit...');
repeat until KeyPressed;
end; { SayGoodbye }
PROCEDURE SelectMode;
VAR
choice1,choice2 : CHAR;
xsize,ysize : WORD;
BEGIN
(* Let's select a mode *)
ClrScr;
WriteLn('VESADEMO:');
WriteLn('1. 256 colors');
WriteLn('2. 32768 colors');
WriteLn('3. 65536 colors');
WriteLn('4. 16777216 colors');
WriteLn('Q uit');
WriteLn;
Write('Your choice: ');
REPEAT
ReadLn(choice1);
IF choice1 <> '1' THEN BEGIN
WriteLn('Sorry !');
WriteLn('This demo wasn''t written for more as 256 colors !');
WriteLn('You would only get a limited impression of the Hi-& TrueColor modes...');
WriteLn('Switching to 256 colors.');
choice1 := '1';
END;
UNTIL choice1 IN ['1'..'4','q'];
IF choice1 = 'q' THEN Halt;
WriteLn;
WriteLn;
WriteLn('a. 320x200');
WriteLn('b. 640x480');
WriteLn('c. 800x600');
WriteLn('d. 1024x768');
WriteLn('e. 1280x1024');
WriteLn('Q uit');
WriteLn;
Write('Your choice: ');
REPEAT
ReadLn(choice2);
UNTIL choice2 IN ['a'..'e','q'];
IF choice2 = 'q' THEN Halt;
CASE choice2 OF
'a' : BEGIN
xsize := 320;
ysize := 200;
END;
'b' : BEGIN
xsize := 640;
ysize := 480;
END;
'c' : BEGIN
xsize := 800;
ysize := 600;
END;
'd' : BEGIN
xsize := 1024;
ysize := 768;
END;
'e' : BEGIN
xsize := 1280;
ysize := 1024;
END;
END;
CASE choice1 OF
'1' : mode := FindVesaMode(xsize,ysize,8);
'2' : mode := FindVesaMode(xsize,ysize,15);
'3' : mode := FindVesaMode(xsize,ysize,16);
'4' : mode := FindVesaMode(xsize,ysize,24);
END;
IF mode = 0 THEN BEGIN
WriteLn('No such mode could be found !');
WriteLn('Switching to to 320x200.');
ReadKey;
mode := V320x200x256;
END;
END;
begin { program body }
SelectMode;
Initialize;
ReportStatus;
{ AspectRatioPlay; }
FillEllipsePlay;
SectorPlay;
WriteModePlay;
ColorPlay;
{ PalettePlay only intended to work on these drivers: }
if (GraphDriver = EGA) or
(GraphDriver = EGA64) or
(GraphDriver = VGA) then
PalettePlay;
PutPixelPlay;
{ PutImagePlay; }
RandBarPlay;
BarPlay;
Bar3DPlay;
ArcPlay;
CirclePlay;
PiePlay;
LineToPlay;
LineRelPlay;
{ LineStylePlay; }
{ UserLineStylePlay; }
TextDump;
TextPlay;
CrtModePlay;
FillStylePlay;
FillPatternPlay;
PolyPlay;
SayGoodbye;
{ CloseGraph; }
CloseVesa;
end.
***************************************************
'* SHOW D2ROTATE (ABOUT THE ORIGIN)
'****************************************************************∞╥≤c≤*φè#^│v/╒:j═φ0t+l▓ô"¬"g└≡?%ªêΣ│H╫½╫╜├¿U'╒⌐⌡ ßV?╩¬ujOΦçEZ1∞▐!▄B╛Σ8║æ]1GlNÜ┐q▌▓;ô$ΦzE<cª*bEô#ä╧ñÅ"∩─LrdaÖ╠º╫a^¥£å╬1~)@ëÖMδ╫0═6DäFê¬Çv┼ß╨kæpτ╪É)}ª 1w3╤╧ü⌡¥╓h▓╣≈ïÅaÑ[TⁿHqªÉ╝DKÄ─Y-∞tT╤Θ╨º╟╪.*ÇI9lΦ≈{πτcσ$τπßoFr╪╨∩┼╞╟;O2■e²LÜ4^N|╪½ÅO?╔°FOz`╟╟╟'<>>π$πΘù6·Xgî╖│°oîδπGƒd╝▀░?■╪╔_9L ⌡ôⁿq'æO▀ƒn4╔▀╚▄┼3pτ.òO°·}÷╕ⁿ±'æO?ít│!√8ßÑ≤/┐╣p┼≥┘E╦Vox╕cΦé5╟╚º╙$?√$≥ΘZεsî≡åìΓpKù¢ïß X╥ 9╞≈\µk┤O¥_ 5Üö\≤éÄ┌╤A[╤ÿáï┼éNⁿÅu16 g,%hc╙╨cD╨Vï┘R¢öKñR;8εáΣ╢╪ós╤π╡á└èxgzPÄMú╫yαºÉ+σJ¢i+▓â3╥ ═Ñ╙î^ºG▓█ πér φçs %#(╗⌠?┼%u8≡6+QÉ))ò)Afw≈╣╪)B&4░åLXV:δät@Å.;5Φf╢Ät┐ΣJ╫─U8úÇ╟éö£╕p╔┴⌠vg╨╬╥é÷╪╣┬ΓI.ç≡^v╤ZΦÇ& ╒┌6ñô6Xß Nè╡╬E₧Ñ
kIº╠▄A+╣╥éb²tæ-Y¡½αÑa═uuîÇ╢αêvhuª╡SÅ┤vèùú¥F;p<d⌐/F─d█éT%▓KΦû=q■öI┐┐╠6S$▒÷╚ENΩ¥Fû9╔┌R'╝ ╧φ└?g┬j▓0═/b╖₧─mûé╢┌»ÿÄë/·<éò■░╤╟╢├Xσ:╥P3Θ"╬Læsφ░┌öSö!╗¿*mN£WΣÇ£┤~#╗ææ≥RΩóh:à▌.æ≈╕▌v£äàd▒à╒├=░╖π║$howeg*╬ 6ù▄ƒô╕φ░Ö╢qΘD>(w@úKεHÆ╛öúΣU
éÜR╔╤W▄èê 2M%ó.▓SNÖA1ùJE╢║l]▓¿>\%└Å4ßO▄£â⌐& ê/)8vSP▀▓ôⁿææ√ü√ÑÄa⌠â╚4S╓╟P-?Σá╕▓Næ*q╡UΘ▓≈ ^ñ·I.rúR&$Y^╚%è≡B┌≈Ceat
Color := RandColor;
SetColor(Color);
SetFillStyle(Random(CloseDotFill)+1, Color);
Bar3D(Random(MaxWidth), Random(MaxHeight),
Random(MaxWidth), Random(MaxHeight), 0, TopOff);
until KeyPressed;
WaitToGo;
end; { RandBarPlay }
procedure ArcPlay;
{ Draw random arcs on the screen }
var
MaxRadius : word;
EndAngle : word;
ArcInfo : ArcCoordsType;
begin
MainWindow('Arc / Ge